package comxyp.service.settings.impl;
import comxyp.mapper.settings.UsersMapper;
import comxyp.pojo.settings.Users;
import comxyp.pojo.settings.UsersExample;
import comxyp.service.settings.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service("usersServiceImpl")
public class UsersServiceImpl implements UsersService {
    @Autowired
    private UsersMapper usersMapper;
    public List<Users> findAll() {
        return usersMapper.selectByExample();
    }

    @Override
    public Users findUserAndPwd(String loginAct, String loginPwd) {
        return usersMapper.findUserAndPwd(loginAct,loginPwd);
    }
}
